package top.llove.common.utils.job;

import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;
import top.llove.code.system.monitor.pojo.SysJob;

/**
 * 定时任务处理（禁止并发执行）
 *
 * @author: 幸会
 * @date: 2021/12/4 16:03
 * @email: 1846724873@qq.com
 * @description: 定时任务处理（禁止并发执行）
 * @version: 1.0
 */
@DisallowConcurrentExecution
public class QuartzDisallowConcurrentExecution extends AbstractQuartzJob
{
    @Override
    protected void doExecute(JobExecutionContext context, SysJob sysJob) throws Exception
    {
        JobInvokeUtil.invokeMethod(sysJob);
    }
}
